﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace QuanLyTruongHoc_App
{
    class LopHocMemu
    {
        public static readonly String[] items = new String[] 
                        {
                            "Tạo mới",
                            "Sửa",
                            "Xóa",
                            "Danh sách lớp",
                            "Sổ điểm",
                            "Bảng điểm học kỳ"
                        };

        public Image[] img = new Image[] 
            {
                global::QuanLyTruongHoc_App.Properties.Resources.New,
                global::QuanLyTruongHoc_App.Properties.Resources.EditPeople,
                global::QuanLyTruongHoc_App.Properties.Resources.DelPeople,
                global::QuanLyTruongHoc_App.Properties.Resources.HocBa,
                global::QuanLyTruongHoc_App.Properties.Resources.BangDiemHK,
                global::QuanLyTruongHoc_App.Properties.Resources.BangDiemMonHoc
            };
        private ContextMenuStrip rMenu;
        private DataGridView dg;

        public LopHocMemu(DataGridView _dg)
        {
            rMenu = new ContextMenuStrip();
            dg = _dg;
            for (int i = 0; i < items.Length; i++)
            {
                rMenu.Items.Add(items[i]);
                rMenu.Items[i].Image = img[i];
            }
            _dg.ContextMenuStrip = rMenu;
            _dg.MouseClick += new MouseEventHandler(_dg_MouseClick);
        }

        private void _dg_MouseClick(object sender, EventArgs e)
        {
        }
    }
}
